#include "apue.h"

int main(void) {
	char ptr[1024];
	size_t size;
	if (chdir("/tmp") < 0) {
		err_sys("chdir error");
	}

	//ptr = path_alloc(&size);
	if (getcwd(ptr, 1024) == NULL)
		err_sys("getcwd failed");

	printf("cwd = %s\n", ptr);

}


		
